package cn.iocoder.yudao.module.hs.service.shiporderdetail;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.hs.controller.admin.shiporderdetail.vo.ShipOrderDetailPageReqVO;
import cn.iocoder.yudao.module.hs.controller.admin.shiporderdetail.vo.ShipOrderDetailSaveReqVO;
import cn.iocoder.yudao.module.hs.dal.dataobject.shiporderdetail.ShipOrderDetailDO;

import javax.validation.Valid;
import java.util.List;

/**
 * 出库单明细 Service 接口
 *
 * @author 航盛
 */
public interface ShipOrderDetailService {

    /**
     * 创建出库单明细
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createShipOrderDetail(@Valid ShipOrderDetailSaveReqVO createReqVO);

    /**
     * 更新出库单明细
     *
     * @param updateReqVO 更新信息
     */
    void updateShipOrderDetail(@Valid ShipOrderDetailSaveReqVO updateReqVO);

    /**
     * 删除出库单明细
     *
     * @param shipOrderId 出库单ID
     */
    void deleteShipOrderDetail(Long shipOrderId);

    /**
     * 获得出库单明细
     *
     * @param id 编号
     * @return 出库单明细
     */
    ShipOrderDetailDO getShipOrderDetail(Long id);

    /**
     * 获得出库单明细分页
     *
     * @param pageReqVO 分页查询
     * @return 出库单明细分页
     */
    PageResult<ShipOrderDetailDO> getShipOrderDetailPage(ShipOrderDetailPageReqVO pageReqVO);

    /**
     * 批量插入出库单明细
     *
     * @param shipOrderDetailDOList
     */
    void insertBatch(List<ShipOrderDetailDO> shipOrderDetailDOList);

    /**
     * 获得出库单明细list
     *
     * @param shipOrderId 出库单ID
     * @return 出库单明细分页
     */
    List<ShipOrderDetailDO> getShipOrderDetailList(Long shipOrderId);
}